Benjamin Otte [Tue, 30 Jun 2009 13:15:55 +0000 (15:15 +0200)]
Implement new GtkFileSystemModel
The new model is mostly API-compatible with the old model (minimal
changes were required), but is a lot faster and has a lot of very
desirable features.
- the model does no longer support a tree, just a list of files in a
given directory
- the storage has been moved to a GArray as opposed to a tree
- no more dependency on GtkFileSystem
- columns are managed by the creator of the model, so any number of
nodes can be added as needed. This also makes the API more similar
to GtkListStore.
- Values are filled on demand using a function given when creating the
model.
- The function can decide to let the model cache returned values or
decide to be called again the next time the value is queried.
- implements GtkTreeSortable
- _gtk_file_system_model_get_value() was added to significantly speed
up value access, which is necessary when sorting large models.
Benjamin Otte [Wed, 17 Jun 2009 08:39:26 +0000 (10:39 +0200)]
move GtkFileSystemModel private stuff out of the private header
Xan Lopez [Thu, 15 Oct 2009 06:43:08 +0000 (09:43 +0300)]
Do not assign the parent class twice
G_DEFINE_TYPE already does this for us, no need to do it again in
class_init
https://bugzilla.gnome.org/show_bug.cgi?id=598515
Paolo Borelli [Thu, 15 Oct 2009 11:59:01 +0000 (13:59 +0200)]
Notify the "active" property of the spinner only when needed
Notify spinner::active only if it really changed an other cosmetic fixes
Matej Urbančič [Thu, 15 Oct 2009 12:30:54 +0000 (14:30 +0200)]
Updated Slovenian translation
Matej Urbančič [Thu, 15 Oct 2009 12:27:30 +0000 (14:27 +0200)]
Updated Slovenian translation
Emmanuele Bassi [Thu, 15 Oct 2009 11:25:21 +0000 (12:25 +0100)]
gtk-demo: Remove C99-ism from list_store example
Daniel Nylander [Thu, 15 Oct 2009 07:53:00 +0000 (09:53 +0200)]
Updated Swedish translation
A S Alam [Thu, 15 Oct 2009 07:26:27 +0000 (12:56 +0530)]
Completing translation for Punjabi
Javier Jardón [Thu, 15 Oct 2009 01:47:45 +0000 (03:47 +0200)]
Move documentation to inline comments: GtkToolShell
https://bugzilla.gnome.org/show_bug.cgi?id=597865
Javier Jardón [Wed, 14 Oct 2009 22:25:40 +0000 (00:25 +0200)]
Move documentation from templates to inline comments: GtkAccesible
https://bugzilla.gnome.org/show_bug.cgi?id=597865
Javier Jardón [Wed, 14 Oct 2009 21:47:33 +0000 (23:47 +0200)]
Move documentation from templates to inline comments: GtkActivatable
https://bugzilla.gnome.org/show_bug.cgi?id=597865
Javier Jardón [Wed, 14 Oct 2009 02:09:48 +0000 (04:09 +0200)]
Move documentation from templates to inline comments: GtkAccelGroup
https://bugzilla.gnome.org/show_bug.cgi?id=597865
Bastien Nocera [Wed, 14 Oct 2009 22:11:43 +0000 (23:11 +0100)]
Fix GtkSpinner using style before it's set
Fix a possible division by zero when the spinner
is started before it's realized (eg. before it has a style
set).
https://bugzilla.gnome.org/show_bug.cgi?id=598496
Bastien Nocera [Wed, 14 Oct 2009 21:38:28 +0000 (22:38 +0100)]
Fix property links in GtkSpinner
Leonid Kanter [Wed, 14 Oct 2009 20:32:01 +0000 (23:32 +0300)]
Updated Russian translation
Bastien Nocera [Wed, 14 Oct 2009 17:43:05 +0000 (18:43 +0100)]
Add GtkSpinner::animation-duration style property
Matthias Clasen [Wed, 14 Oct 2009 17:52:52 +0000 (13:52 -0400)]
Add GtkSpinner to the widget gallery
Yes, our documentation setup is wierd and wonderful.
Matthias Clasen [Wed, 14 Oct 2009 17:25:23 +0000 (13:25 -0400)]
Documentation and stylistic fixups
Bastien Nocera [Wed, 14 Oct 2009 16:46:11 +0000 (17:46 +0100)]
Fix "active" property not being notified
And setting it FALSE starting the spinning when it should
stop it.
Matthias Clasen [Wed, 14 Oct 2009 16:30:40 +0000 (12:30 -0400)]
Fix doc build
There was an escaping problem in the newly inlined documentation.
Bastien Nocera [Wed, 14 Oct 2009 15:01:24 +0000 (16:01 +0100)]
Capitalise a11y description for GtkSpinner
Bastien Nocera [Wed, 14 Oct 2009 14:58:05 +0000 (15:58 +0100)]
Update POTFILES.in for spinner widgets
Bastien Nocera [Tue, 21 Jul 2009 01:16:56 +0000 (02:16 +0100)]
Bug 319607 – Add a throbber (activity widget) to GTK+
Add GtkSpinner activity throbber, as well as a cell renderer.
Bastien Nocera [Tue, 13 Oct 2009 12:53:09 +0000 (13:53 +0100)]
Add ability to set a tooltip's image from a GIcon
Makes it easier to implement fallbacks whilst following
theme changes.
https://bugzilla.gnome.org/show_bug.cgi?id=598261
Javier Jardón [Wed, 14 Oct 2009 01:23:47 +0000 (03:23 +0200)]
Move documentation from templates to inline comments: GtkAboutDialog
https://bugzilla.gnome.org/show_bug.cgi?id=597865
Javier Jardón [Mon, 12 Oct 2009 13:59:45 +0000 (15:59 +0200)]
Substitute gtk_widget_ref/unref with g_object_ref/unref
Substitute the use of gtk_widget_ref/unref in documentation examples
and in internal gtk+ code
https://bugzilla.gnome.org/show_bug.cgi?id=598218
Javier Jardón [Mon, 12 Oct 2009 14:09:55 +0000 (16:09 +0200)]
Substitute gtk_style_unref for g_object_unref in documentation example
https://bugzilla.gnome.org/show_bug.cgi?id=598218
Javier Jardón [Wed, 14 Oct 2009 01:02:14 +0000 (03:02 +0200)]
Use g_object_ref/unref instead deprecated gdk_*_ref/unref functions
Substitute deprecated reference counting functions for
g_object_ref/unref in documentation and in internal code
https://bugzilla.gnome.org/show_bug.cgi?id=598217
Tor Lillqvist [Tue, 13 Oct 2009 18:32:04 +0000 (21:32 +0300)]
Don't use XP themes until they work
Javier Jardón [Tue, 13 Oct 2009 15:29:04 +0000 (17:29 +0200)]
Bump version to 2.19.0
Leonid Kanter [Tue, 13 Oct 2009 14:19:26 +0000 (17:19 +0300)]
Updated Russian translation
Leonid Kanter [Tue, 13 Oct 2009 14:00:59 +0000 (17:00 +0300)]
Updated Russian translation
Nguyễn Thái Ngọc Duy [Tue, 13 Oct 2009 13:19:54 +0000 (20:19 +0700)]
po/vi.po: update translation of "Places"
David Planella [Tue, 13 Oct 2009 11:37:44 +0000 (13:37 +0200)]
Updated Catalan translation
David Planella [Mon, 12 Oct 2009 17:32:26 +0000 (19:32 +0200)]
Updated Catalan translation
Javier Jardón [Wed, 23 Sep 2009 14:53:55 +0000 (16:53 +0200)]
Bug 596019 - No accessors for GtkDialog buttons
Add API for GtkDialog to return widgets by response ID.
Added gtk_dialog_get_widget_for_response() to access to all kinds
of buttons with all kinds of responses.
Dumitru Mișu Moldovan [Sun, 11 Oct 2009 11:29:25 +0000 (14:29 +0300)]
Updated Romanian translation
Kjartan Maraas [Sun, 11 Oct 2009 10:36:48 +0000 (12:36 +0200)]
Updated Norwegian bokmål translation
Eitan Isaacson [Tue, 6 Oct 2009 19:28:23 +0000 (12:28 -0700)]
Explicitly set the accessible name of GtkToolButton.
GAIL is not able to retrieve the correct button name alone, so it must be set in gtktoolbutton.c
https://bugzilla.gnome.org/show_bug.cgi?id=597596
Michael Natterer [Sat, 10 Oct 2009 16:26:07 +0000 (18:26 +0200)]
Revert "Remove deprecated GtkContainer function and macros"
This reverts commit
0e3a46915eabaf1bb8fd0559616c0cec92025678.
Javier Jardón [Thu, 8 Oct 2009 15:54:55 +0000 (17:54 +0200)]
Remove deprecated GtkContainer function and macros
Branko Kokanović [Fri, 9 Oct 2009 20:12:26 +0000 (20:12 +0000)]
Updated Serbian translation
Tor Lillqvist [Thu, 8 Oct 2009 12:40:45 +0000 (15:40 +0300)]
Create and install gtk-update-icon-cache.exe.manifest to avoid UAC
Tor Lillqvist [Fri, 9 Oct 2009 11:32:11 +0000 (14:32 +0300)]
Don't include gdkwin32.h when testing Objective-C++
Fixes bug #594644. If somebody actually some day needs to include
gdkwin32.h from an Objective-C++ program something needs to be done.
Matthias Clasen [Fri, 9 Oct 2009 05:08:54 +0000 (07:08 +0200)]
Make selecting the last character work again
This broke when I added link support. git bisect helped to track it
down.
Matej Urbančič [Thu, 8 Oct 2009 12:20:59 +0000 (14:20 +0200)]
Updated Slovenian translation
Timo Jyrinki [Thu, 8 Oct 2009 09:50:35 +0000 (12:50 +0300)]
Updated Finnish translation by Jiri Grönroos.
Tor Lillqvist [Thu, 8 Oct 2009 07:54:22 +0000 (10:54 +0300)]
Fix the GDI+ gdk-pixbuf loader
Should fix bug #552678. Patch by Dominic Lachowicz, based on a clueful
response from Jason Copenhaver on Albeto Ruiz's blog
http://aruiz.typepad.com/siliconisland/2009/08/dear-lazyweb-gtk-need-gdi-help.html
André Gondim [Wed, 7 Oct 2009 10:20:26 +0000 (07:20 -0300)]
Updated Brazilian Portuguese translation.
Reviewed by Rodrigo Flores <mail@rodrigoflores.org>.
Alexander Shopov [Wed, 7 Oct 2009 04:44:35 +0000 (07:44 +0300)]
Updated Bulgarian translation
Tor Lillqvist [Tue, 6 Oct 2009 11:53:22 +0000 (14:53 +0300)]
Don't ignore SIGPIPE unless it exists
Manoj Kumar Giri [Tue, 6 Oct 2009 05:57:46 +0000 (11:27 +0530)]
Updated Oriya Translation
Matthias Clasen [Mon, 5 Oct 2009 21:44:25 +0000 (17:44 -0400)]
Bump version
Matthias Clasen [Mon, 5 Oct 2009 21:42:00 +0000 (17:42 -0400)]
2.18.2
Matthias Clasen [Mon, 5 Oct 2009 20:43:37 +0000 (16:43 -0400)]
Updates
Alexander Larsson [Mon, 5 Oct 2009 20:07:06 +0000 (22:07 +0200)]
Don't request window sizes with zero width or height
Zero width/height is unsupported and will magically be turned into one.
For instance, gtk_widget_size_allocate() will eventually do this magic
on the value stored in widget->allocation.
However, if we don't do this magic conversion early, then the value
returned from gtk_window_compute_configure_request() will not be
comparable with whats stored in widget->allocation. (I.E. they will
differ if width or height are zero).
This is dangerous, as we do such a comparison in gtk_window_move_resize().
Currently a change from e.g. 10x1 (current allocation) to 10x0 (new size)
will be expected to produce a ConfigureNotify, when it actually won't,
thus never thawing the frozen toplevel.
Fixes bug #588059
Alexander Larsson [Mon, 5 Oct 2009 09:39:29 +0000 (11:39 +0200)]
Fix up _gdk_windowing_window_at_pointer coordinate reporting
We need to do a final XQueryWindow to get the coordinates inside the
windows rather than in the parent window.
This fixes bug #597386, "Cannot click buttons more than once...", which
failed due to the grab tracking stuff getting the wrong coordinates as
per the above.
Matthias Clasen [Mon, 5 Oct 2009 02:35:12 +0000 (22:35 -0400)]
Plug a memory leak
Valgrind reported a leak of regions from gdk_window_process_updates_internal.
Takayuki KUSANO [Sat, 3 Oct 2009 09:34:58 +0000 (18:34 +0900)]
Updated Japanese translation
Luca Ferretti [Sat, 3 Oct 2009 07:20:44 +0000 (09:20 +0200)]
Updated Italian translation
Sebastian Dröge [Fri, 2 Oct 2009 05:39:34 +0000 (07:39 +0200)]
Bug 596959 - DirectFB backend compilation broken with changes from 2.18.0 to 2.18.1
Fix compilation of the DirectFB backend after internal API changes of GDK.
Pascal Terjan [Thu, 1 Oct 2009 15:47:22 +0000 (17:47 +0200)]
Call XReconfigureWMWindow with proper screen
Thanks gcc :
gdkwindow-x11.c:1731: warning: passing argument 3 of
'XReconfigureWMWindow' makes integer from pointer without a cast
/usr/include/X11/Xlib.h:1871: note: expected 'int' but argument is of
type 'struct GdkScreen *'
Signed-off-by: Pascal Terjan <pterjan@mandriva.com>
Matthias Clasen [Thu, 1 Oct 2009 15:41:17 +0000 (11:41 -0400)]
Move SIGPIPE suppression to gtk_init and document it
Some people were unhappy with doing it deep inside the lpr print
backend at an unpredictable time, and SIGPIPE is almost never
wanted anyway.
Miloš Popović [Thu, 1 Oct 2009 01:23:06 +0000 (01:23 +0000)]
Updated Serbian translation
Matthias Clasen [Wed, 30 Sep 2009 22:02:46 +0000 (18:02 -0400)]
Bump version
Matthias Clasen [Wed, 30 Sep 2009 22:00:21 +0000 (18:00 -0400)]
2.18.1
Matthias Clasen [Wed, 30 Sep 2009 20:28:02 +0000 (16:28 -0400)]
Updates
Petr Kovar [Wed, 30 Sep 2009 19:23:10 +0000 (21:23 +0200)]
Updated Czech translation
Adrian Johnson [Wed, 30 Sep 2009 16:47:55 +0000 (12:47 -0400)]
Correct the orientation of landscape pages
The convention for landscape pages, and required by PostScript
Language Reference Manual, is for landscape printing to rotate user
space 90 degrees counterclockwise. Part of bug 596423
Adrian Johnson [Wed, 30 Sep 2009 16:46:58 +0000 (12:46 -0400)]
Emit PageOrientation DSC comment into PostScript print output
The PageOrientation DSC comment tells PostScript viewers such as gv or
evince the orientation to use when displaying the page. Part of bug 596423
Marek Kasik [Wed, 30 Sep 2009 16:40:11 +0000 (12:40 -0400)]
Speed up printer listing in the print dialog
Use shorter timeout for connection testing to avoid A 3-6 second
delay before the printers appear. Bug 594643
Gabor Kelemen [Wed, 30 Sep 2009 14:49:55 +0000 (16:49 +0200)]
Updated Hungarian translation
Kristian Rietveld [Wed, 30 Sep 2009 13:07:37 +0000 (15:07 +0200)]
Bug 588449 - DnD doesn't work on GDK/Quartz
Patch from Paul Davis. This gets the basics of drag and drop properly
working on Mac OS X.
Christian Dywan [Wed, 30 Sep 2009 12:45:30 +0000 (08:45 -0400)]
Add a note about tooltip theming
This should help to reduce the amount of confusion about how to
make a tooltip window appear like a tooltip. Bug 596080.
Kristian Rietveld [Wed, 30 Sep 2009 11:09:22 +0000 (13:09 +0200)]
Fix compile warning in defaultvalue test
Kristian Rietveld [Wed, 30 Sep 2009 11:05:33 +0000 (13:05 +0200)]
Ignore certain GtkSettings in defaultvalues unit test
Like the other GtkSettings already registered, these are influenced from
the outside and cannot be properly tested. The defaultvalues test
passes again now.
Kristian Rietveld [Wed, 30 Sep 2009 11:00:28 +0000 (13:00 +0200)]
Use boxed accessors for setting and retrieving cursor property
Kristian Rietveld [Wed, 30 Sep 2009 08:19:07 +0000 (10:19 +0200)]
Bug 596580 - Blank rows in entry autocompletion
gtk_tree_model_build_level() always needs to emit row-inserted when
requested, this should not depend on whether the level has a parent
level or a virtual root, which is a check whether or not we need to
reference the node in the child model. Furthermore, we also need
to emit row-has-child-toggled after row-inserted when appropriate.
When gtk_tree_model_filter_row_changed() pulls in the root level, it
must request build_level() to emit signals for this. The refilter
function uses row_changed to process the changes, so build_level() in
the first call to row_changed() might pull in multiple new nodes in this
scenario, for all of these signals need to be emitted. Of course,
build_level() will then also emit the signals for the node row_changed()
is processing, we should not emit a duplicate signal, this is now
accounted for.
Add a unit test for this. For this small functionality to block the
row-changed signal has been implemented, so that we can simulate calls
to the refilter function using the current visible column setup.
Kristian Rietveld [Tue, 29 Sep 2009 15:12:37 +0000 (17:12 +0200)]
Pretty print non-matching signals in filter model test suite
Daniel Nylander [Wed, 30 Sep 2009 07:58:00 +0000 (09:58 +0200)]
Updated Swedish translation
Thomas Jaeger [Tue, 29 Sep 2009 06:23:25 +0000 (02:23 -0400)]
Interpret min_value == max_value correctly
https://bugzilla.gnome.org/show_bug.cgi?id=588649
Signed-off-by: Thomas Jaeger <ThJaeger@gmail.com>
Thomas Jaeger [Tue, 29 Sep 2009 06:20:40 +0000 (02:20 -0400)]
Select for DeviceStateNotify
Signed-off-by: Thomas Jaeger <ThJaeger@gmail.com>
https://bugzilla.gnome.org/show_bug.cgi?id=588649
Thomas Jaeger [Tue, 29 Sep 2009 15:57:50 +0000 (11:57 -0400)]
Keep track of axis values
https://bugzilla.gnome.org/show_bug.cgi?id=588649
Jürg Billeter [Wed, 30 Sep 2009 04:43:51 +0000 (00:43 -0400)]
Support tracker 0.7
Make GtkSearchEngineTracker work with libtracker 0.6 and 0.7.
See bug 596081.
Xan Lopez [Wed, 30 Sep 2009 03:45:03 +0000 (23:45 -0400)]
Update last_window only when needed
_gtk_tooltip_handle_event, which is called for many events in the GTK+
main loop, calls gtk_tooltip_set_last_window, which keeps a weak
reference to the last window we passed through. If the window being
set is the same than the last one there's really no need to update our
weak reference, so add a check for that and exit early.
Thomas Jaeger [Tue, 29 Sep 2009 06:14:12 +0000 (02:14 -0400)]
Filter out events that the current window didn't select for
Signed-off-by: Thomas Jaeger <ThJaeger@gmail.com>
https://bugzilla.gnome.org/show_bug.cgi?id=588649
Thomas Jaeger [Tue, 29 Sep 2009 06:12:27 +0000 (02:12 -0400)]
Always select all XInput motion events
Signed-off-by: Thomas Jaeger <ThJaeger@gmail.com>
https://bugzilla.gnome.org/show_bug.cgi?id=588649
Thomas Jaeger [Tue, 29 Sep 2009 05:56:59 +0000 (01:56 -0400)]
Report XInput button motion events until all buttons are released.
Signed-off-by: Thomas Jaeger <ThJaeger@gmail.com>
https://bugzilla.gnome.org/show_bug.cgi?id=588649
Thomas Jaeger [Tue, 29 Sep 2009 05:51:44 +0000 (01:51 -0400)]
XInput allows up to 255 buttons
Signed-off-by: Thomas Jaeger <ThJaeger@gmail.com>
https://bugzilla.gnome.org/show_bug.cgi?id=588649
Thomas Jaeger [Tue, 29 Sep 2009 05:48:59 +0000 (01:48 -0400)]
Refactor _gdk_input_other_event
Signed-off-by: Thomas Jaeger <ThJaeger@gmail.com>
https://bugzilla.gnome.org/show_bug.cgi?id=588649
Thomas Jaeger [Tue, 29 Sep 2009 00:21:33 +0000 (20:21 -0400)]
Use strstr instead of g_strrstr.
Signed-off-by: Thomas Jaeger <ThJaeger@gmail.com>
Alexander Larsson [Tue, 29 Sep 2009 10:56:57 +0000 (12:56 +0200)]
Only select for button and pointer event on toplevels
These event types propagate up the hierarchy anyway, so this means
we avoid setting it unnecessarily. This is especially important
for button press event, since only one client can select for this
on each window, causing X errors if two clients do it.
Claude Paroz [Tue, 29 Sep 2009 10:03:40 +0000 (12:03 +0200)]
Updated French translation
Amitakhya Phukan [Tue, 29 Sep 2009 05:49:07 +0000 (11:19 +0530)]
Updating corrected Assamese translations.
Matthias Clasen [Mon, 28 Sep 2009 16:41:29 +0000 (12:41 -0400)]
Always initialize out params
This was causing a crash in the appearance capplet, reported in
bug 596345.
Thomas Jaeger [Mon, 28 Sep 2009 05:39:42 +0000 (01:39 -0400)]
Improve detection of input device source type
This detection code is not 100% reliable, but it should fare much better
than the current code, which just compares the device name to a fixed
set of strings. Many applications depend on erasers being recognized
reliably, so we start by checking for a device name containing the
substring 'eraser'.
Signed-off-by: Thomas Jaeger <ThJaeger@gmail.com>
Alexander Larsson [Mon, 28 Sep 2009 13:29:37 +0000 (15:29 +0200)]
Sent button events don't cause passive grabs
Don't track sent button events as causing or removing
passive grabs.
Alexander Larsson [Mon, 28 Sep 2009 13:26:19 +0000 (15:26 +0200)]
Remove unused grab_one_pointer_release_event var
We don't use this anymore, so just remove.
Alexander Larsson [Mon, 28 Sep 2009 13:21:54 +0000 (15:21 +0200)]
Extend _gdk_windowing_window_at_pointer to be able to get toplevels only
This has two advantages:
1) In many backends, this is faster as we can terminate the window
hierarchy traversal earlier
2) When used in gdkdisplay.c::get_current_toplevel() to get the
current toplevel that has the pointer we now correctly return
a toplevel with the pointer in it where the pointer is inside
some foreign subwindow of a toplevel window.
The second advantage fixes some bugs in client side event generation
when the pointer is inside such a foreign child window.